home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_teo_davedoor.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # TEO_MirrorDoor.cog
  4. #
  5. # Controls the opening of the final door.
  6. #
  7. # [SXC]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     message     activate
  14.     
  15.     cog         doorcog
  16.         
  17.     thing       door0
  18.     thing       door1
  19.     
  20.     thing       bolt0
  21.     thing       bolt1
  22.     thing       bolt2
  23.     thing       bolt3
  24.     
  25.     thing       statue
  26.     thing       mirror
  27.     
  28.     int         check=0     local
  29.     
  30.     end
  31.  
  32. # ========================================================================================
  33.  
  34. code
  35.  
  36. # ........................................................................................
  37. activate:
  38.     if((GetSenderRef() == statue) && (check == 0))
  39.     {
  40.         check=1;
  41.         SendMessage(doorcog, user0);
  42.         Sleep(30);
  43.         print("Hey DAVE! I'M RESETTING THE DOORS NOW");    
  44.         MoveToFrame(door0, 0, 3);
  45.         MoveToFrame(door1, 0, 3);
  46.         WaitForStop(door0);
  47.         For(count = 0; count <= 4; count=count + 1)
  48.             {
  49.                 MoveToFrame(bolt0[count], 0, 3);
  50.             }
  51.             
  52.         check=0;
  53.             
  54.     }
  55.     return;
  56.  
  57. # ........................................................................................
  58.  
  59. end
  60.  
  61.